package com.example.admin.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Toast;


public class MainActivity extends Activity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_main1);
        findViewById(R.id.queren).setOnClickListener(this);
        findViewById(R.id.bank).setOnClickListener(this);
        findViewById(R.id.huigoukuan).setOnClickListener(this);
        Log.e("Thread",Thread.currentThread().getId()+""+"  "+System.currentTimeMillis());

        new Handler(this.getMainLooper()).postDelayed(new Runnable() {
            @Override
            public void run() {
               /* try {
                    Thread.sleep(5000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }*/
                Log.e("Thread",Thread.currentThread().getId()+""+"  "+System.currentTimeMillis());
                ;

            }
        },5000);

        Log.e("Thread","  "+System.currentTimeMillis());
    }


    @Override
    public void onClick(View v) {
        Intent intent = null;
        switch (v.getId()){

        }
        startActivity(intent);
    }
}
